-- GENERATED SPELL FOR [Crystalfused Miner] --


function spell0_23174(pUnit, Event) --@Arcane Explosion,Self--
pUnit:FullCastSpellOnTarget(32614,pUnit)
pUnit:RegisterEvent('Sorts_23174', 615, 1)
end

function Sorts_23174(pUnit, Event)
local choix_sorts_23174 = math.random(0, 0)
if choix_sorts_23174 == 0 then
pUnit:RegisterEvent('spell0_23174', 1, 1)
end
end

function mob23174_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_23174', math.random(1500, 3000), 1)
end

function mob23174_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob23174_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob23174_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(23174, 1, 'mob23174_Action')
RegisterUnitEvent(23174, 2, 'mob23174_Leave')
RegisterUnitEvent(23174, 3, 'mob23174_Kill')
RegisterUnitEvent(23174, 4, 'mob23174_Die')
